package homework.ooday02.person;

public class Doctor extends Person{
    String title;

    Doctor(String name,int age,String address,String title){
        super(name,age,address);
        this.title = title;
    }

    void cut(){
        System.out.println(name+"在动手术");
    }

    void sayHi(){
        System.out.println("我叫"+name+","+age+"岁，家住"+address+"职称是"+title);
    }

}
